<?php 



function show_user_information()
{
// var_dump($_SESSION);

if (@ $_SESSION['is_login']!=1)
{
	index_show_login();
	return ;
}
//作未实现
$_SESSION['class']="";
$_SESSION['college']="";


$html=<<<ZZZ


<h2><a href="index.php">个人资料:</a></h2>
<table class="table table-striped table-bordered table-condensed">
    <tr><td style="width:110px;">学号:</td><td>{$_SESSION['id']}</td></tr>
    <tr><td>昵称:</td><td>{$_SESSION['nickname']}</td></tr>
    <tr><td>电子邮件::</td><td>{$_SESSION['realname']}</td></tr>
    <tr><td>手机号码::</td><td>{$_SESSION['tel']}</td></tr>
    <tr><td>QQ:</td><td>{$_SESSION['qq']}</td></tr>
    <tr><td>学院:</td><td>{$_SESSION['college']}</td></tr>
    <tr><td>班级:</td><td>{$_SESSION['class']}</td></tr>
    <tr><td>上次登录时间:</td><td>{$_SESSION['lastlogintime']}</td></tr>
    <tr><td>登录次数:</td><td>{$_SESSION['logincount']}</td></tr>
    <tr><td>自我介绍:</td><td>{$_SESSION['introduction']}</td></tr>
</table>

ZZZ;

echo $html;

}


 ?>

<!-- array (size=13)
  'id' => string '1205010207' (length=10)
  'nickname' => string '' (length=0)
  'realname' => string '王克纯' (length=9)
  'permission' => string 'guest' (length=5)
  'password' => string 'guest' (length=5)
  'idcard' => string '432522199508263732' (length=18)
  'email' => string '' (length=0)
  'qq' => string '' (length=0)
  'tel' => string '' (length=0)
  'introduction' => string '' (length=0)
  'lastlogintime' => string '2013-05-26 10:44:55' (length=19)
  'logincount' => string '5' (length=1)
  'is_login' => int 1 -->